package com.generator.sysManage.sectionManage.service;

import com.generator.sysManage.sectionManage.pojo.DMDept;
import com.generator.sysManage.userManage.pojo.City;
import com.generator.sysManage.userManage.pojo.Province;
import com.generator.util.PageModel;
import org.springframework.ui.Model;

import java.util.List;

public interface IDMService {

    //获取部门信息
    public List<DMDept> getDMDeptListByDMDept(DMDept dmDept);

    //查询部门信息(分页)
    public PageModel<DMDept> getDMDeptListByFY(DMDept dmDept,PageModel<DMDept> pageModel);

    //根据条件查询所有省
    public List<Province> getProvinceList(Province province);

    //根据条件查询所有市
    public List<City> getCityList(City city);


    //添加部门
    public Integer addDMDept(DMDept dmDept);

    //修改部门
    public Integer updateDMDept(DMDept dmDept);

    //修改部门状态(0-正常，1不正常)
    public String  updateState(DMDept dmDept, Model model);

    //修改搜索后部门状态(0-正常，1不正常)
    public String  updateState1(DMDept dmDept, Model model,DMDept dmDept1);
}
